﻿<!DOCTYPE HTML>
<html>
<head th:include="fragments/_header :: _head('用户列表')"></head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 用户管理 <span class="c-gray en">&gt;</span> 订单列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">

	<div class="cl pd-5 bg-1 bk-gray">
		<span class="l"></span>
		<span class="r">共有数据：<strong th:text="${page.total}">0</strong> 条</span>
	</div>
	<div class="text-c mt-20">
		<form action="/order/list" id="searchForm">
			<input type="text" class="input-text" style="width:250px" placeholder="输入用户名称" id="username" name="username">
			<input type="hidden" name="page" id="page" th:value="${page.current}">
			<button type="submit" class="btn btn-success" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
		</form>
	</div>
	<div class="dataTables_wrapper no-footer  mt-20">
		<table class="table table-border table-bordered table-bg">
			<thead>
				<tr>
					<th scope="col" colspan="8">订单列表</th>
				</tr>
				<tr class="text-c">
					<th width="150">期号</th>
					<th width="100">用户ID</th>
					<th width="100">用户名</th>
					<th width="150">选项</th>
					<th width="100">数量</th>
					<th width="100">金额</th>
					<th width="130">购买时间</th>
					<th width="100">状态</th>
				</tr>
			</thead>
			<tbody>
				<tr class="text-c"  th:each="order:${page.records}">
					<td th:text="${order.expect}">user</td>
					<td th:text="${order.userId}">13000000000</td>
					<td th:text="${order.username}">13000000000</td>
					<td th:if="${order.itemCode==0}">没牛</td>
					<td th:if="${order.itemCode==1}">牛一</td>
					<td th:if="${order.itemCode==2}">牛二</td>
					<td th:if="${order.itemCode==3}">牛三</td>
					<td th:if="${order.itemCode==4}">牛四</td>
					<td th:if="${order.itemCode==5}">牛五</td>
					<td th:if="${order.itemCode==6}">牛六</td>
					<td th:if="${order.itemCode==7}">牛七</td>
					<td th:if="${order.itemCode==8}">牛八</td>
					<td th:if="${order.itemCode==9}">牛九</td>
					<td th:if="${order.itemCode==10}">牛牛</td>
					<td th:text="${order.count}">13000000000</td>
					<td th:text="${order.total}">13000000000</td>
					<td  th:text="${#dates.format(order.timestamp, 'yyyy-MM-dd HH:mm:ss')}">2014-6-11 11:11:42</td>
					<td th:if="${order.status==0}" class="td-status"><span class="label label-success radius">开奖中</span></td>
					<td th:if="${order.status==1}" class="td-status"><span class="label label-danger radius">中奖</span></td>
					<td th:if="${order.status==2}" class="td-status"><span class="label label-active radius">未中奖</span></td>
				</tr>
			</tbody>
		</table>
		<div th:replace="fragments/_page :: pageBar(${page})"></div>
		<div th:replace="fragments/_page :: pagination(${page})"></div>
	</div>
</div>
<div th:include="fragments/_footer :: _footer"></div>
<script th:replace="fragments/_page :: pageScript"></script>
<script type="text/javascript" src="/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
</body>
</html>